﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebServiceKFC.ThanhVienF
{
    public class ThanhVienThuongDTO: ThanhVienDTO
    {
        public override int TinhTien(int tienHoaDonLucChuaGiamGia)
        {
            int kq = tienHoaDonLucChuaGiamGia;
            if (tienHoaDonLucChuaGiamGia >= 100000)
                kq = (int)(tienHoaDonLucChuaGiamGia * (1 - (float)PhanTramGiamGia / 100));
            TangDiem(kq);
            return kq;
        }

        public override void TangDiem(int tienDaTinhXong)
        {
            Diem += (int)(tienDaTinhXong / 1000);
        }
    }
}